<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>订舱业务管理</title>
    <s:head/>
    <style type="text/css">
        table {
            clear: both;
        }

        ul, li {
            list-style: none;
        }

        .li1 {
            list-style: none;
            float: left;
        }

        .li2 {
            list-style: none;
            float: left;
        }

        .ul1 {
            list-style: none;
            clear: left;
        }

        .div_content {
            display: none;
        }

        .li_content {
            display: none;
        }

        .pointer {
            cursor: pointer;
        }

        .hiddenValue {
            display: none;
        }
    </style>
    <script type="text/javascript"
            src="<%=request.getContextPath()%>/js/business/business.js"></script>
    <script type="text/javascript">
        var Btime = "${booking.confirmTime}";
        var Ttime = "${trial.confirmTime}";
        var Dtime = "${declare.confirmTime}";
        var identification = "${identification}";

        $(document).ready(function () {
            $("#tabs").tabs({cache: true});
            if (Btime != "" || Ttime != "" || Dtime != "") {
                $("#sumit").attr('disabled', true);
            } else {
                $("#sumit").attr('disabled', false);
            }
            if ("list" == identification) {
                $("#mrdForm").hide();
                $("#businessForm").find("div").eq(0).hide();
            }
        });
    </script>
</head>
<body>
<input id="singleTypeInput" value="${singleType}" type="hidden"/>
<input id="businessInput" value="${id }" type="hidden"/>
<div id="mrdForm">

    <table>
        <tr>
            <td>基本资料填写</td>
        </tr>
    </table>
</div>
<form id="businessForm">
    <div class="sendSup">
        <ul>
            <li>
                <ul class="right-aligned">
                    <li class="li1">公司名称：</li>
                    <li class="li1 li1_space"><input type="text" id="company"
                                                     value='<s:property value="business.shipper.company"/>'
                                                     disabled="disabled" name="shipper.company"/></li>
                    <li class="li1">联系人：</li>
                    <li class="li1 li1_space"><input type="text" id="name"
                                                     value='<s:property value="business.shipper.name"/>'
                                                     disabled="disabled" name="shipper.name"/></li>
                    <li class="li1">联系电话：</li>
                    <li class="li1 li1_space"><input type="text" id="phone"
                                                     value='<s:property value="business.shipper.phone"/>'
                                                     disabled="disabled" name="shipper.phone"/></li>
                    <li class="li1">联系地址：</li>
                    <li class="li1 li1_space"><input type="text" id="address"
                                                     value='<s:property value="business.shipper.address"/>'
                                                     disabled="disabled" name="shipper.address"/><input type="hidden"
                                                                                                        id="shipId"
                                                                                                        value='<s:property value="business.shipper.id"/>'
                                                                                                        name="shipper.id"/>
                    </li>
                    <li class="li1">传真：</li>
                    <li class="li1 li1_space"><input type="text" id="fax"
                                                     value='<s:property value="business.shipper.fax"/>'
                                                     disabled="disabled" name="shipper.fax"/></li>
                </ul>
            </li>
        </ul>
    </div>
    <div style="clear: both;">
        <ul>
            <li class="striking" id="busiType"><input type="checkbox" disabled="disabled"
                                                      name="busiType" id="book"
                                                      <s:if test="booking.id!=null">checked="checked"</s:if> />订舱 <input
                    type="checkbox" name="busiType" id="trail" disabled="disabled"
                    <s:if test="trial.id!=null">checked="checked"</s:if> />拖车 <input
                    type="checkbox" name="busiType" id="declarate" disabled="disabled"
                    <s:if test="declare.id!=null">checked="checked"</s:if> />报关
                <!-- 					<input id="returnBtn" type="button" value="返回" onclick="location.href='business-businessList';" /> -->
                <button ID="trailVpassBtn" onclick="validatePass();">审核</button>
                <button ID="trailVrejectBtn" onclick="validateReject();">驳回业务</button>
                <input id="returnBtn" type="button" value="返回" onclick="returnBackForSup();"/>
            </li>
        </ul>
    </div>
    <div id="tabs">
        <ul id="liList">
            <s:if test="booking.id!=null">
                <li><a href="business-supBooking?book.id=${booking.id }&checkDetail=T">订舱</a></li>
            </s:if>
            <s:if test="trial.id!=null">
                <li><a href="business-trail?trial.id=${trial.id }&checkDetail=T">拖车</a></li>
            </s:if>
            <s:if test="declare.id!=null">
                <li><a
                        href="business-declaration?declare.id=${declare.id }&checkDetail=T">报关</a></li>
            </s:if>
        </ul>
    </div>
</form>
</body>
</html>
